package com.hhit.zhgd.domain.entity

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import java.util.*

@TableName("role")
data class Role(
    @TableId(type = IdType.AUTO)
    val id:Long?=null,
    val name:String?=null,
    val permission:String?=null,
    val root:Int?=null,
    val status:Int?=null,
    @TableField(fill = FieldFill.INSERT)
    var createTime: Date?=null,
    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    var updateTime:Date?=null
):java.io.Serializable{
    companion object {
        private const val serialVersionUID = 1L
    }
}
